home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.632 < prev    next >
Text File  |  1992-02-06  |  1KB  |  23 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fswiss Helvetica;}
  2. \paperw11040
  3. \paperh7620
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 \
  8. Q:  Services are really useful for processing data where no special parameters are needed, but what do I do if I want to provide a Service that has a number of different options,  like Sorting on different columns?\
  9. \
  10. A:  The best way to handle parameters passed to a Service is to provide another service that allows the user to set the parameters.  The Defaults system can also be used to save these parameters so that the service "remembers" commonly used parameters.\
  11. \
  12. For Example, the application that provides the Service "Sort" should also provide a "Set Sort Parameters..." Service.  This Service would bring up a panel that allowed the user to set the parameters to the Sort.  These parameters would then be stored in the Default system so that the application can keep track of commonly used parameters. See the section on DefaultsSystemFunctions in the Next documentation in Digital Librarian for more information on Defaults.\
  13. \
  14. QA632\
  15.  
  16. \fc0 \
  17.  
  18. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 Valid for 2.0
  19. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 \
  20.  
  21. \
  22.  
  23.